﻿using System;
using System.IO;

namespace GeckoLib {
    class InvalidMessageException : InvalidCastException {
        public readonly byte RawMessage;
        public InvalidMessageException(byte rawMessage, string message = null, Exception innerException = null)
            : base(message, innerException) {
            RawMessage = rawMessage;
        }
    }
    //TODO: Override Message
    class OperationFailedException : IOException {
        public readonly string Operation;
        public OperationFailedException(string operation, string message = null, Exception innerException = null)
            : base(message, innerException) {
            Operation = operation;
        }
    }
}
